package com.monise.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "CLIENTE_ANIMAL")
public class ClienteAnimal implements Serializable {

		/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		@Id
		@SequenceGenerator(name="CLIENTE_ANIMAL_SEQUENCE", sequenceName="CLIENTE_ANIMAL_SEQUENCE", initialValue=1, allocationSize=1)
		@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CLIENTE_ANIMAL_SEQUENCE")
		@Column(name = "pkClienteAnimal")
		private long pkClienteAnimal;
		
		@ManyToOne @JoinColumn(name="pkAnimal")
		private Animal animal;

		@ManyToOne @JoinColumn(name="pkCliente")
		private Cliente cliente;

		public long getPkClienteAnimal() {
			return pkClienteAnimal;
		}

		public void setPkClienteAnimal(long pkClienteAnimal) {
			this.pkClienteAnimal = pkClienteAnimal;
		}

		public Animal getAnimal() {
			return animal;
		}

		public void setAnimal(Animal animal) {
			this.animal = animal;
		}

		public Cliente getCliente() {
			return cliente;
		}

		public void setCliente(Cliente cliente) {
			this.cliente = cliente;
		}

}
